#include <iostream>
using namespace std;

class Creature{
public:
    Creature() {
        cout << "create object Creature" << endl;
    }
    //析构函数
    //在object销毁的时候调用
    //可以在这个方法里处理如:属性是引用类型指针的内存销毁
    ~Creature(){
        cout << "destroy object Creature" << endl;
    }
};

int main() {
    Creature* pCreature = new Creature();

    delete pCreature;
    system("pause");
    return 0;
}